package com.dh.repository;

import com.dh.entity.UserGood;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserGoodRepository extends JpaRepository<UserGood, Long> {
    Page<UserGood> findByDeleted(byte deleted, Pageable pageable);

    void deleteByUserId(Long userId);


    UserGood findByNoAndDeleted(String no, byte deleted);

}


